<!DOCTYPE html>
<html lang="en">

<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>Document</title>
</head>

<body>
	<div>div</div>
	<div>div</div>
	<div>div</div>
	<script>
		var arr = [1, 2, 3, [1, 23, 4, [12, 3, 4, { 'test': 'test' }]]]
		/* 获取所有标签 */
		var divs = document.getElementsByTagName('div')
		/* 了解一个API的优缺点 */
		console.log(divs);
		for (let index = 0; index < divs.length; index++) {
			divs[index].innerHTML = `test`

		}
		console.log(arr);
	</script>
</body>

</html>